package Animal;

/**
 * @author 孤雪唯方
 * @date 2025/05/12
 * @description 动物类
 */
public class Animal {
    protected String name;
    protected int age;

    public Animal(String name, int age) {
        this.name = name;
        this.age = age;
    }

    /**
     * 动物吃饭
     */
    public void eat() {
        System.out.println(name + " is eating.");
        }

}
